package com.xingzuo.library_translation.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.xingzuo.base.app.AppActivityKey;
import com.xingzuo.base.ui.mvp.base.ui.BaseMvpActivity;
import com.xingzuo.library_translation.R;
import com.xingzuo.library_translation.R2;
import com.xingzuo.library_translation.contract.ReleaseContract;
import com.xingzuo.library_translation.presenter.ReleasePresenter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

@Route(path = AppActivityKey.RELEASEACTIVITY)
public class ReleaseActivity extends BaseMvpActivity<ReleasePresenter> implements ReleaseContract.View {
    @BindView(R2.id.iv_back)
    ImageView ivBack;
    @BindView(R2.id.tv_wancheng)
    TextView tvWancheng;
    @BindView(R2.id.fl_title)
    FrameLayout flTitle;
    @BindView(R2.id.tv_set)
    TextView tvSet;

    @Override
    public ReleasePresenter getPresenter() {
        return new ReleasePresenter();
    }

    @Override
    public int getView() {
        return R.layout.activity_release;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R2.id.iv_back, R2.id.tv_wancheng, R2.id.tv_set})
    public void onViewClicked(View view) {
        int id = view.getId();
        if (id == R.id.iv_back) {
            finishActivity();
        } else if (id == R.id.tv_wancheng) {

        } else if (id == R.id.tv_set) {
            startIntent(AppActivityKey.RELEASESETACTIVITY);
        }
    }
}